package org.enlongWu.pojo;

import lombok.Data;
import org.enlongWu.anno.ColdStorageState;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class ColdStorage {
    private Integer id;//主键ID
    private String name;//冷库名

    private Float temperature;//温度
    private Float humidity;//湿度

    private Integer shelves;//货架数
    private Integer occupied;//占用货架数
    private Float unitPrice;//货架小时单价
    private String type;//refrigeration冷藏、freeze速冻
    private Float temMaximal;//温度上限
    private Float temMinimal;//温度下限
    private Float humMaximal;//湿度上限（当且仅当冷藏检查）
    private Float humMinimal;//湿度下限
    @ColdStorageState
    private String state;
    //状态：creating创建、闲置idling、运行running、异常abnormalizing、维修Maintenance、拆除Demolished

    private Integer engineerId;//当前/上一位 维修者id
    private String address;//地址
    private LocalDateTime createTime;//创建时间


    //数据库没有的字段
    //绑定在其上的传感器
    private List<Sensor> sensors;
}
